﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net.Sockets;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Xml;

namespace s7nck
{
    public  class StateObject: StateOneBase
    {

        public StateObject(int length)
        {
            base.DataLength = length;
            base.Buffer = new byte[length];
            BUFFER_SIZE = length;
            buffer = new byte[length];
        }

        public Socket workSocket = null;
        public  int BUFFER_SIZE ;
        public byte[] buffer ;
        public StringBuilder sb = new StringBuilder();
        public bool IsClose;

        public void Clear()
        {
            base.IsError = false;
            this.IsClose = false;
            base.AlreadyDealLength = 0;
            base.Buffer = null;
        }

    }
}
